import QtQuick 2.2
import QtQuick.Window 2.1

Window {
    visible: true
    width: 700
    height: 500

    Rectangle {
        anchors.fill: parent;
        gradient: Gradient {
            GradientStop {
                position: 0.0;
                color: "lightseagreen";
            }
            GradientStop {
                position: 1.0;
                color: "lightskyblue";
            }
        }

        Text {
            anchors.centerIn: parent;
            text: "Hello QtQuick";
            font {
                pixelSize: 30;
//                bold: true;
//                underline: true;
                family: "Microsoft Yahei";
                weight: Font.Light;
            }
            color: "white";
        }

        Text {
            id: link;
            anchors.bottom: parent.bottom;
            anchors.bottomMargin: 10;
            anchors.horizontalCenter: parent.horizontalCenter;

            textFormat: Text.RichText;
            text: "<a href='http://www.bing.com'>bing.com</a>";
            font {
                pixelSize: 20;
                bold: flase;
                family: "Microsoft Yahei";
                weight: Font.Light;
            }
            color: "white";

            onLinkActivated: {
                console.log("link " + link.text);
            }
        }
    }

}
